<template>
  <section>
    <el-form label-width="50px" inline size="mini" style="margin-bottom: -10px;margin-top: 5px">
      <el-form-item label="" v-for="(title,index) in titleList" :key="index">
        <el-button size="mini" type="primary" @click="handleEvent(index)">{{title}}</el-button>
      </el-form-item>
    </el-form>
  </section>
</template>

<script>
  import {mapGetters, mapActions, mapMutations} from 'vuex'
  export default {
    name: "batchTool",
    props:['titleList'],
    data(){
      return{
        whether:false
      }
    },
    watch:{
    },
    created(){
      console.log('看一下有哪些操作-----',this.titleList)
    },
    computed:{
      ...mapGetters(['department']),
    },
    watch: {
    },
    methods: {
      handleEvent(e){
        console.log('看下点了哪个操作---',e)
        this.$emit('operateEvent',e)
      },
      handleCheck(e){
        console.log('看下点是否批量---',e)
        this.$emit('batchBtn',e)
      }
    }
  }
</script>

<style scoped>

</style>
